{% extends "base.html" %}

{% block head-title %}{{algorithm.algorithm_name}}{% endblock %}

{% block title %}{{algorithm.algorithm_name}}{% endblock %} 

{% block content %}
<script src="/static/js/clusterer/3.js"></script>
<form action="/clusterer/configure_parameters/" method="post" class="uk-form" id="form1"
					onsubmit="return onForm1Submit();">
	{%csrf_token%}
	<input type="hidden" name="instance_id" value="{{algorithm.instance_id}}"/>
	<fieldset>
		<legend>配置参数(3/3)</legend>
			{% ifequal algorithm.algorithm_name "K均值" %}
				<div class="uk-form-row">
					<div class="uk-form-controls">
						设定K值:<input type="number" value="3" name="k_value" />
					</div>
				</div>
			{% endifequal %}
			{% ifequal algorithm.algorithm_name "DBSCAN" %}
				<div class="uk-form-row">
					<div class="uk-form-controls">
						最小半径:<input type="text" value="0.5" name="eps" />
					</div>
				</div>
				<div class="uk-form-row">
					<div class="uk-form-controls">
						最小包含点数:<input type="number" value="5" name="min_samples" />
					</div>
				</div>
			{% endifequal %}
			
			{% ifequal algorithm.algorithm_name "BIRCH" %}
				<div class="uk-form-row">
					<div class="uk-form-controls">
						输入类别数:<input type="number" value="" name="n_clusters" placeholder="为空表示自动判定类别数" />
					</div>
				</div>
			{% endifequal %}
	</fieldset>
	<div class="uk-form-row" style="margin-top:5px;">
		<a href="javascript:history.go(-1);" class="uk-button">上一步</a>
		<input class="uk-button uk-button-primary" type="submit"
			value="提交" style="float: right;">
	</div>
</form>
{% endblock %}